body,
h1,
h2,
h3,
h4,
h5,
h6,
ul,
ol,
dl,
li,
dt,
dd,
a,
p {
  box-sizing: border-box;
  /* 默认有边距，都要清除 */
  margin: 0;
  padding: 0;
  /*字体设置*/
  font-size: 14px;
  font-family: 'Microsoft Yahei', sans-serif;
  /* 去掉列表的原点 */
  list-style: none;
}

address,
caption,
cite,
code,
dfn,
em,
th,
var,
i {
  font-style: normal;
  font-weight: normal;
}

/*可选*/

html,
body {
  color: #333;
  width: 100%;
  height: 100%;
}

.t-c {
  text-align: center;
}
//定位
.abs {
  position: absolute;
}
.fix {
  position: fixed;
}
.rel {
  position: relative;
}
.position-middle {
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  height: fit-content;
  width: fit-content;
  margin: auto;
}

.position-middle-w {
  left: 0;
  right: 0;
  width: fit-content;
  margin: auto;
}
.position-middle-h {
  bottom: 0;
  top: 0;
  height: fit-content;
  margin: auto;
}

//立体阴影带边框
.wrap {
  box-shadow: 0 0 2px rgb(0 0 0 / 20%);
  border-radius: 2px;
}
//两行省略
.muti-ellipsis-2 {
  word-break: break-all;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
//单行省略
.ellipsis-1 {
  overflow-x: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
//过渡效果
.transition {
  transition: all 1s;
}
//小圆边框
.wrap-border {
  border: 1px solid #f2f2f5;
  border-radius: 2px;
}

/*行内块元素*/

input,
img {
  margin: 0;
  padding: 0;
  border: 0 none;
  outline-style: none;
  vertical-align: bottom;
  max-width: 100%;
}

/*行内元素*/

a,
a:active,
a:visited {
  color: #333;
  /*下划线和颜色*/
  text-decoration: none;
  cursor: pointer;
  .icon,
  .el-icon {
    margin-right: 5px;
  }
}

a:hover {
  color: #eb7350;
}
a:hover .icon {
  fill: #eb7350;
}
//禁用a标签事件
a.disabled {
  pointer-events: none;
}

textarea {
  /* 边框清零 */
  border: none;
  /* 轮廓线清零 */
  outline: none;
  /* 防止文本域被随意拖拽 */
  resize: none;
}

i {
  /*文字样式*/
  font-style: normal;
}

table {
  /*边框合并*/
  border-collapse: collapse;
  border-spacing: 0;
}

/* 使用伪元素清除浮动 */

.clearfix::before,
.clearfix::after {
  content: '';
  height: 0;
  line-height: 0;
  display: block;
  visibility: none;
  clear: both;
}

.clearfix {
  *zoom: 1;
}

/* 版心*/

.w {
  width: 1050px;
  margin: 0 auto;
}

/*flex*/

.flex {
  display: flex;
}
.flex-colomn {
  display: flex;
  flex-direction: column;
}
.reverse-row {
  display: flex;
  flex-direction: row-reverse;
}
.reverse-column {
  display: flex;
  flex-direction: column-reverse;
}
.flex-wrap {
  flex-wrap: wrap;
}
.flex-center {
  align-items: center;
  justify-content: center;
}
.flex-center-a {
  align-items: center;
}
.flex-center-j {
  justify-content: center;
}
.flex-between {
  justify-content: space-between;
}

/*svg的iconfont */

.icon {
  width: 15px;
  height: 15px;
  fill: currentColor;
  overflow: hidden;
}
